package com.xiaoxie.report.mapper;

import com.xiaoxie.report.domain.QueryCondition;
import com.xiaoxie.report.service.impl.ReportDataServiceImpl;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;
import java.util.Map;

@Mapper
public interface ReportDataMapper {

    @SelectProvider(type = ReportDataSqlProvider.class, method = "getQuerySql")
    List<Map<String, Object>> queryData(@Param("sql") String sql,
                                        @Param("params") Map<String, String> params,
                                        @Param("queryConditions") List<QueryCondition> queryConditions);

}
